<Project>
  <ItemGroup>
    <TestTargetFramework Include="$(NetCoreAppCurrentTargetFrameworkMoniker)">
      <Folder>$(NetCoreAppCurrent)</Folder>
    </TestTargetFramework>
  </ItemGroup>

  <PropertyGroup>
    <PackagePlatform Condition="'$(PackagePlatform)' == ''">$(TargetArchitecture)</PackagePlatform>
    <MinOSForArch>win7</MinOSForArch>
    <MinOSForArch Condition="'$(PackagePlatform)' == 'arm'">win8</MinOSForArch>
    <MinOSForArch Condition="'$(PackagePlatform)' == 'arm64'">win10</MinOSForArch>
  </PropertyGroup>

  <ItemGroup>
    <!-- These projects are individually restored in order. Each
         subsequent restore only copies files that don't already exist
         in CORE_ROOT, so assets from the first project file win. -->
    <CoreRootProjectFiles Include="$(RepoRoot)src\tests\Common\test_dependencies_fs\test_dependencies.fsproj" />
    <CoreRootProjectFiles Include="$(RepoRoot)src\tests\Common\test_dependencies\test_dependencies.csproj" />
  </ItemGroup>

  <PropertyGroup>
    <ProductDestination>$(RepoRoot)\artifacts\bin\coreclr\$(TargetOS).$(TargetArchitecture).$(Configuration)</ProductDestination>
    <RefDestination>$(ProductDestination)\ref</RefDestination>
  </PropertyGroup>

  <Target Name="CopyDependencyToCoreRoot">
    <MSBuild Projects="@(CoreRootProjectFiles)"
             Targets="CopyDependencyToCoreRoot"
             Properties="Language=C#;RuntimeIdentifier=$(OutputRID);CORE_ROOT=$(CORE_ROOT);EnableNativeSanitizers=$(EnableNativeSanitizers)" />

  </Target>
</Project>
